home *** CD-ROM | disk | FTP | other *** search
/ The Scorpion King Cardz / The Scorpion King Cardz - Disc 1 - Mathays.iso / pc / Mathayus.exe / Mathayus.dxr / 00002_Ini script.ls < prev    next >
Encoding:
Text File  |  2002-03-26  |  905 b   |  38 lines

  1. global gUserDiskDrives, gEncryptKey
  2.  
  3. on getIni IniFile, Section, KeyName
  4.   if the platform contains "mac" then
  5.     IniFile = gUserDiskDrives[1] & IniFile
  6.   else
  7.     IniFile = "C:\" & IniFile
  8.   end if
  9.   return dosReadINI(IniFile, Section, KeyName)
  10. end
  11.  
  12. on setIni IniFile, Section, KeyName, Data
  13.   if the platform contains "mac" then
  14.     IniFile = gUserDiskDrives[1] & IniFile
  15.   else
  16.     IniFile = "C:\" & IniFile
  17.   end if
  18.   return dosWriteINI(IniFile, Section, KeyName, string(Data))
  19. end
  20.  
  21. on encryptIni IniFile
  22.   if the platform contains "mac" then
  23.     IniFile = gUserDiskDrives[1] & IniFile
  24.   else
  25.     IniFile = "C:\" & IniFile
  26.   end if
  27.   return dosEncryptFile(IniFile, IniFile, gEncryptKey)
  28. end
  29.  
  30. on decryptIni IniFile
  31.   if the platform contains "mac" then
  32.     IniFile = gUserDiskDrives[1] & IniFile
  33.   else
  34.     IniFile = "C:\" & IniFile
  35.   end if
  36.   return dosDecryptFile(IniFile, IniFile, gEncryptKey)
  37. end
  38.